<div class="path"><i class="iconfont">&#xf108;</i>  <a href="{url('admin/default/welcome')}">开始</a> / <a href="{url('label/index')}">栏目标签(添加 | 编辑)</a></div>
<div class="m10">
<div class="table-head"><a href="{url('label/index')}" class="button"> <i class="iconfont">&#xf053;</i> 返回</a><strong>栏目标签(添加 | 编辑)</strong></div>
<form id="form" action="{url('label/LableSave')}">
<input type="hidden" name="fid" value="{$fid}"/>
<input type="hidden" name="type" value="1"/>
<input type="hidden" name="es_class" value="pid"/>
<table class="table">
    <tr><th>标签名称:</th><td>
        <input datatype="s" class="input w200" type="text" name="title"  value="{$info['title']}"/>
    </td></tr>
    <tr><th>排序:</th><td>
    <input readonly="readonly" id="es_order" datatype="*" class="input w200 gray-input" type="text" name="es_order"  value="{if $info['es_order']}{$info['es_order']}{else}id desc{/if}"  />
    <select class="select" onChange="$('#es_order').val($(this).val())">
        <option value="" selected>请选择排序类型</option>
        <option value="id desc" selected>ID倒序</option>
        <option value="id asc">ID升序</option>
        <option value="neworder desc,id desc">自定义倒序</option>
        <option value="neworder asc,id desc">自定义升序</option>
    </select>
    </td>
    </tr>
    <tr><th>附加SQL条件:</th>
    <td><textarea id="es_where" name="es_where" class="textarea w500 h40">{$info['es_where']}</textarea><span class="gray">标准SQL WHERE条件语句</span>
    </td>
    </tr>
</table>
<div class="btn fn-tac">
    <a href="{url('label/index')}" class="button"> <i class="iconfont">&#xf053;</i> 返回</a>
    <input type="submit" value="确定保存" class="button button-blue" />
    <input type="reset" value="重置" class="button button-yellow" />
</div>
</form>
</div>
<script type="text/javascript">
Do('base','dialog','form',function(){ 
    $('#form').forms();
}) 
</script>
